
<!DOCTYPE html>
<html lang="en-US">
<head>
    <meta charset="UTF-8"/>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1" name="viewport" />
    <meta http-equiv="content-script-type" content="text/javascript">
    <meta name="format-detection" content="telephone=no" />
    <!-- uc强制竖屏 -->
    <meta name="screen-orientation" content="portrait">
    <!-- QQ强制竖屏 -->
    <meta name="x5-orientation" content="portrait">
            <link rel="shortcut icon" href="/favicon.ico">
    <meta http-equiv="Cache-Control" content="max-age=900" />

    <title>商品列表</title>
    <link rel="stylesheet"href="statics/mobile/css/style.css?v=2017061659333656423412123">
    <link rel="stylesheet"href="statics/mobile/css/SpsBtn.css?v=2017061659333656423412123">

    <link rel="stylesheet"href="statics/mobile/css/Item/list.css?v=2017061659333656423412123">
    <style>
        .detail-searchbox{padding:10px 3.124%;background: #f3f3f3;}
        .detail-searchbox .members_search{background: #fff;}
        .original_price s{font-size: 10px;}
        .mlist_goods.avr .goodstype{display: none;}
        .mlist_goods.avr .goodstype-avr{display: block;}
        .mlist_goods .goodstype-avr{display: none;}
        .avr .goodstype-avr .nprice{background-color: #fff;display: block;margin: 0;height: 17px;line-height: 14px;overflow:hidden;}
        .avr .goodstype-avr .nprice .sell-num{padding-top:0;}
        .staticLoading{margin-top:10px;text-align:center;}
        .sell-num {
            color: #999;
            padding-top:3px;
            margin-left: 4px;
            font-size: 11px;
            color:#989898;
        }

        .sell-num strong {
            color:#ff6b14;
            font-weight: normal;
            font-size: 12px;
            vertical-align: -1px;
        }
        .custom-paginations-container{
            height: 30px;
            padding: 20px 0 10px;
            position: relative;
        }
        .custom-paginations{
            margin: 0 auto;
            width: 70%;
            height: 30px;
            border-radius: 4px;
            font-size: 0;
            box-shadow: 0 1px 2px rgba(0,0,0,.05);
            box-sizing: border-box;
            border: 1px solid #ddd;
        }
        .custom-paginations .custom-paginations-prev,
        .custom-paginations .custom-paginations-next{
            display: block;
            box-sizing: border-box;
            float: left;
            width:50%;
            height: 32px;
            line-height: 32px;
            text-align: center;
            font-size: 16px;
            color: #999;
            border: none;
            outline: none;
            border-right: 1px solid #ddd;
            border-bottom: 1px solid #ddd;
            background: #fff;
        }
        .custom-paginations .disabled {
            color: #999;
            cursor: default;
        }
        .custom-paginations .active{
            color: #09f;
        }
        .page_num{
            position: absolute;
            top: 19px;
            right: 7px;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            border: 0.05rem solid #999;
            line-height: 15px;
        }
        .page_num p:first-child{
            border-bottom: 0.05rem solid #999;
            margin:0 5px;
            margin-bottom: 1px;
        }
        .page_num p{
            font-size: 9px;
            text-align: center;
            color:#666;
        }
    </style>

</head>

<body style="width:100%;">


<div class="membersbox pad50">

    <header class="fall-back"><a href="/User/mycoupon/sid/4001109.html?pid=27020622">商品列表</a></header>
    <div class="detail-searchbox clearfix">
        <i class="fl left-sort" id="left-sort-btn"></i>
        <section class="members_search fl">
                <input type="title" id="title" value="<?php echo $title;?>"
                placeholder="商品搜索：请输入商品关键字">
                <button type="button" id="searchSubmit"></button>
        </section>
    </div>

    <section class="mlist_nav g-box">
        <span class="order_type cur"><a href="javascript:;">默认</a></span>
        
        <span class="order_type" data-val="price"><a href="javascript:;">价格</a></span>
        <span class="order_type" data-val="sales_desc"><a href="javascript:;">销量</a></span>
        <span class="order_type" data-val="time_desc"><a href="javascript:;">新品</a></span>
        <span class="J-avr"><a href="javascript:;"><img src="statics/mobile/images/list4.png" width="16" height="16"><img src="statics/mobile/images/list3.jpg" width="16" height="16"></a></span>
    </section>

    <input type="hidden" value="" id="order_sort">
    <input type="hidden" value="0" id="ltime">
    <input type="hidden" value="0" id="group_id">
	<input type="hidden" id="cat_id" value="<?php echo $cat_id;?>">
    <input type="hidden" name="is_display_original_price" value="1">
    <input type="hidden" value="0" id="miao">
    <input type="hidden" value="0" id="crowd">
    <input type="hidden" value="0" id="new">
    <input type="hidden" name="sku" value="">
    <input type="hidden" name="num" value="">
    <input type="hidden" name="is_dhs_order" value="">
    <!-- 是否是订货 -->
    <input type="hidden" id="is_orderGoods" value='0'>

    <!-- 软 -->
    <section id="J-listgoods" class="mlist_goods newlist avr  ">
      <ul class="clearfix">

      </ul>
    </section>
    <section class="J-state">
        <div class="noresult">
            <i></i>
            <span>没有搜索到相关信息</span>
        </div>
    </section>
    <!-- 上一页、下一页  start-->
    <input type="hidden" value="0" name="is_cataract">
    <!-- 上一页、下一页  end-->
    <input type="hidden" value="0" id="j-page">
    <!-- load more start-->
    <div class="staticLoading" id="j-staticLoading">
        <span class="staticLoading-icon"></span>
        <span class="j-loading-text">加载中...</span>
    </div>
    <!-- load more end-->
    <section id="paneltab-overlay-close"></section>
    <section class="panel-left-tab" id="panel-left-box">
        <h2><i class="sort-left-ico"></i>商品分类</h2>
        <div class="overflow-list">
        <ul class="first-classify">
            <li>
                <a href="javascript:;"><b class="ico right"></b>我的分类</a>
				<ul class="second-classify">
				<?php foreach($cate as $k=>$v){?>
					<li class="j-goodsCate" data-id="<?php echo $v['id'];?>">
					<a href="javascript:;"><?php echo str_repeat('&nbsp;&nbsp;',$v['cat_level']);?><?php echo $v['cat_name'];?></a>
					</li>
				<?php }?>
				</ul>
			</li>
        </ul>
        </div>
    </section>
    <section class="j-close-popupSKU" class="overlay"></section>
    <!-- end popup sku -->

    <?php include VIEWS_PATH."bottom.php";?>
</div>

<div id="diy-nav"></div>


<!-- 件 -->
<script type="text/j-template" id="tpl_item_lists">
	<% if(dataset.length){ %>
		<% _.each(dataset,function(item){ %>
			<li class="g-box por">
				<section>
					<a href="?con=item&id=<%= item.id %>">
						<img src="statics/mobile/images/lazyload/default.png" data-original="<%= item.thumb %>#480x480" class="lazyload">
						<% if(item.num == 0){ %>
							<b class="sold-out"></b>
						<% } %>
					</a>
					<% if(item.is_try){ %>
						<div class="icon-try"></div>
					<% } %>

					<% if(item.is_miao=="1" || item.is_bargin=="1"){ %>
						<% if(item.start_time && item.end_time){ %>
							<p class="start-time"><b>开始时间：<%= item.start_time %></b></p>
						<% } %>
					<% } %>
					<% if(item.m_status && item.m_status == 2){ %>
						<p class="goods-end ">已结束</p>
					<% } %>

					 <% if(item.is_crowd && item.is_crowd == 1){ %>
						<p class="goods-crowd"><%= item.label %></p>
						<p class="goods-status js-goods-status">进行中</p>
						<a href="javascript:;" class="promptly j-openPopupSKU" data-id="<%=item.item_crowd_id%>" data-type="buy">
							<i></i>
						</a>
					<% } %>


        </section>
				<section class="g-flex">
					<div class="goods-detail">
            <% if(item.buy_url!=""){ %>
  						<a href="<%= item.buy_url %>">
  					<% }else{ %>
  						<a href="?con=item&id=<%= item.id %>">
  					<% } %>
              <i class="platform <%= item.platform %>" data-id="<%= item.id %>" data-type="all"></i>
							<% if(item.is_miao && item.is_miao == "1"){ %>
								<span class="seckill">秒杀</span>
							<% }else if(item.discount && item.discount != 10 && item.rank_price>0 && item.is_limit_discount == "1" ){ %>
								<span class="seckill">限时<%= item.discount %>折</span>
							<% }else if(item.is_bargin && item.is_bargin == "1"){ %>
								<span class="seckill">砍价</span>
							<% }else if(item.discount && item.discount != 10 && item.rank_price>0){ %>
								<span class="seckill"><%= item.discount %>折</span>
							<% } %>
							<% if(item.is_presale && item.is_presale=="1"){ %>
								<span class="seckill greencol">预售</span>
							<% } %>
							<%= item.title %>
						</a>
						<% if(item.is_miao || item.is_bargin || item.is_bargin ){ %>
							<% if(item.start_time && item.end_time){ %>
								<p class="start-time"><b>开始时间：<%= item.start_time %></b></p>
							<% } %>
						<% } %>
					</div>

					<p class="goodstype">
						<b>
							<% if(item.miao_price && item.miao_price>0){ %>
								秒杀价：<em>&yen;</em><%= item.miao_price %>
							<% }else if(item.rank_price && item.rank_price>0){ %>
								<em>&yen;</em><%= item.rank_price %>
							<% }else if(item.bargin_price && item.bargin_price>0){ %>
								砍杀价：<em>&yen;</em><%= item.pay_price %>
							<% }else{ %>
								<em>&yen;</em><%= item.price %>
							<% } %>
						</b>
						<% if(item.buy_need_points>0){ %>
						<span class="point">
							<i class="plus">+</i>
							<i class="num"><%= item.buy_need_points %></i>
							<i class="name">积分</i>
						</span>
						<% } %>
						<span class="original_price"><s>&yen;<%= item.original_price %></s></span>
            <% if( item.sale_num>0 ){ %>
							<em class="sell-num">已售：<strong><%=item.sale_num%></strong></em>
						<% } %>
					</p>
					<p class="goodstype-avr">
            <span class="original_price" ><s>&yen;<%= item.original_price %></s></span>
            <span class="nprice clearfix">
            <b class="fl">
                <% if(item.miao_price && item.miao_price>0){ %>
                    秒杀价：<em>&yen;</em><label><%= item.miao_price %></label>
                <% }else if(item.rank_price && item.rank_price>0){ %>
                    <em>&yen;</em><label><%= item.rank_price[1] %></label>
                <% }else if(item.bargin_price && item.bargin_price>0){ %>
                    砍杀价：<em>&yen;</em><label><%= item.bargin_price %></label>
                <% }else{ %>
                    <em>&yen;</em><label><%= item.price %></label>
                <% } %>
            </b>
            <% if(item.buy_need_points>0){ %>
            <span class="point" style="margin-left: 3px;">
                <i class="plus">+</i>
                <i class="num"><%= item.buy_need_points %></i>
                <i class="name">积分</i>
            </span>
            <% } %>
            <% if( item.sale_num>0){ %>
                <em class="sell-num fr"><strong></strong><%=item.sale_num%>件已售</em>
            <% } %>
        </span>
					</p>
				</section>
			</li>
		<% }) %>
	<% } %>
</script>
<!-- end tpl_item_lists -->
<textarea style="display:none;" id="j-initdata"></textarea>
<textarea style="display:none;" id="j-navdata"><?php echo $nav;?></textarea>
<?php echo file_get_contents(API_STORE.'widget/Navigation/content.html');?>
<?php include VIEWS_PATH."footer.php";?>
<script src="statics/mobile/js/dist/diy-min.js?v=2016102404"></script>
<script src="statics/mobile/js/dist/Item/lists.js?v=20170616593336534"></script>
</body>
</html>
<!-- 20170105 -->
